package com.hyzx.qbasic.admin.model.vo.req.admin;

import com.hyzx.qbasic.admin.model.vo.req.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * Created by 黄江华 on 2018/8/13
 */

@ApiModel
public class DeleteAttachmentReq extends BaseRequest {

    @ApiModelProperty("内容ID")
    @NotEmpty(message = "内容ID不能为空")
    private String contentId;

    @ApiModelProperty("附件ID")
    @NotNull(message = "附件ID不能为空")
    @Range(min = 0, message = "附件ID不能小于0")
    private Integer fileId;

    public String getContentId() {
        return contentId;
    }

    public void setContentId(String contentId) {
        this.contentId = contentId;
    }

    public Integer getFileId() {
        return fileId;
    }

    public void setFileId(Integer fileId) {
        this.fileId = fileId;
    }
}
